package cn.wolfcode.productServer.service.impl;

import cn.wolfcode.productServer.domain.Product;
import cn.wolfcode.productServer.respository.ProductRespository;
import cn.wolfcode.productServer.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductSercviceImpl implements IProductService {

    @Autowired
    private ProductRespository productRespository;

    @Override
    public Product get(Long id) {
        return productRespository.findById(id).get();
    }
}
